package com.googlecode.activitiportal.domain;

/**
 */
public class ResultStatus {
	
	public static final String ERROR = "error";
	public static final String SUCCESS = "success";

	private String type;
	private String message;
	private Long id;

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	public boolean isError() {
		return this.type == ERROR;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

}
